<!DOCTYPE html>
<html lang="en" xmlns:v-if="http://www.w3.org/1999/xhtml" xmlns:v-elseif="http://www.w3.org/1999/xhtml"
      xmlns:v-else="http://www.w3.org/1999/xhtml" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../../js/vue/html.js"></script>
</head>
<body>
<div id="nb">
    <button v-on:click="a">打我啊</button>
</div>
<script>
    var vue = new Vue({
        el:"#nb",
        data:{
            msg:"靓仔"},
        methods:{
            a:function () {
                alert(111)
            }
        }

    })
</script>
</body>
</html>